/**
 *  Ein-/Ausblenden von Boxinhalten
 */

$.toggle = function(query, img)
{
        if($(query).css("display") == "none") {
        	$(img).attr("src", "media/images/minus.png");
        	$(img).attr("alt", "Ausblenden");
        	$(img).attr("title", "Ausblenden");
        } else {
        	$(img).attr("src", "media/images/plus.png");
        	$(img).attr("alt", "Einblenden");
        	$(img).attr("title", "Einblenden");
        }
        $(query).toggle("slow");
}  

$(document).ready(function() {
    $('.edit').editable('http://localhost/daus/helpers/ajax.php', {
    	indicator : 'Speichern... <img src="media/images/save_as.png">',
        cssclass  : 'jedit_input',
    });
});